package com.example.logistics.Listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class OrderCreateListener {
    @RabbitListener(queues = "order.create")
    public void ListenerQueue(String message){
        System.out.println("收到信息:"+message);
    }

}
